Why should I call self=[super init]

Posted by Michael on Stack Overflow See other posts from Stack Overflow or by Michael
Published on 2010-06-02T10:49:58Z Indexed on 2010/06/02 10:53 UTC
Read the original article Hit count: 139

Filed under:

Let's say I create my class and its init method. Why should I call and return value of superclass init assigned to self? Which cases it covers?

I would appreciate examples why would I need it for Cocoa superclass and non-Cocoa.

© Stack Overflow or respective owner

Related posts about objective-c